package com.bw.service.impl;

import com.bw.domain.Menu;

import com.bw.mapper.MenuMapper;
import com.bw.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class MenuServiceImpl implements MenuService {

    @Autowired
    MenuMapper menuMapper;

    @Override
    public List<Menu> getlist() {
        return menuMapper.getlist();
    }

    @Override
    public List<Menu> getstatus() {
        return menuMapper.getstatus();
    }

    @Override
    public List<Menu> getlist2(Menu menu) {
        return menuMapper.getlist2(menu);
    }

    @Override
    public boolean deleteMenu(Integer id) {
        return menuMapper.deleteMenu(id);
    }

    @Override
    public void addMenu(Menu menu) {
        menuMapper.addMenu(menu);
    }

    @Override
    public Menu updateMenu(Integer id) {
        return menuMapper.updateMenu(id);
    }

    @Override
    public Menu getupdateMenu(Integer id) {
        return menuMapper.getupdateMenu(id);
    }

    @Override
    public List<Map<String, String>> list() {
        return menuMapper.list();
    }

    @Override
    public void insertUsers(Menu date) {
        menuMapper.insertUsers(date);
    }

    @Override
    public void insertMenus(List<Menu> cachedDataList) {
        menuMapper.insertMenus(cachedDataList);
    }


}
